import axios from "./axios.js"

const api={
	getSwiper(){
		//获取轮播
		return axios.get('home/swiper')
	},
	getGroup(){
		//获取租房小组
		return axios.get('home/groups')
	},
	getNews(){
		//获取新闻资讯
		return axios.get('home/news')
	},
	getCityInfo(params){
		//获取城市信息
		return axios.get('area/info',params)
	},
	getCityList(){
		//获取城市列表
		return axios.get('area/city') 
	},
	getHotCity(){
		//获取热门城市
		return axios.get('area/hot')
	},
	getHouse(params){
		//获取房源
		return axios.get('house',params)
	},
	getDetail(params){
		//获取房屋详情
		return axios.get('house/detail',params)
	},
	getHouseCondition(){
		//获取帅选条件
		return axios.get('house/condition')
	}
}

export default api